package com.Design.Chain.old;

import com.Design.Chain.Request;

/**
 * @Author Lc
 * @Date 2023/9/29
 * @PackageName: com.Design.Chain
 * @ClassName: MainGo
 * @Description:
 */

public class MainGo {
    public static void main(String[] args) {
        Request request = new Request();
        request.setMessage("想要回家，请个假");
        request.setRequestType("请假");
        request.setNumber(6);

        Manager lw = new Manager("老王");
        Manager ll = new Manager("老李");
        Manager lj = new Manager("老军");

        lw.getResult("经理",request);
        ll.getResult("总监",request);
        lj.getResult("总经理",request);
    }
}
